#include "BaseType.h"
#include "Tracer.h"
#include "Logger.h"
using namespace libemb;

void testLogger(void)
{
    TRACE_INFO("Logger test start >>>>>>\n");
	LoggerManager::getInstance().setRoot("./log");
	if (!LoggerManager::getInstance().createLogger("test",512,3))
	{
		TRACE_ERR("create logger error!\n");
		return;
	}
	
	for(auto i=0; i<10000; i++)
	{
		LOG_INFO("test","this is a test log.\n");
	}

    TRACE_INFO("Logger test finished <<<<<<\n");
}
